/*
 * @Date: 2022-11-07 18:37:14
 * @LastEditors: sailornpg
 * @LastEditTime: 2022-11-07 18:54:07
 * @FilePath: \vue-admin-ts\src\views\Login\components\login-pannel\type.ts
 * @Description: types
 */
import { ValidateFieldsError } from "async-validator";
interface Callback {
  (isValid?: boolean, invalidFields?: ValidateFieldsError): void;
}
export interface IMyFormInstance<T = any> {
  resetFields: () => void;
  formValidate: () => (callback?: Callback) => Promise<boolean>;
  getFormData: () => T;
}
